package ClassExercise1;

import java.io.Serializable;

public class Person implements Serializable {
    private String name;
    private int age;
    private boolean isMale;

    private static final long serialVersionUID = -68497944707523L;
    Person(){

    }
    Person(String name,int age,boolean isMale){
        this.name=name;
        this.age=age;
        this.isMale=isMale;
    }
    public String toString(){
        return  "[ name = " + this.name+
                "age =" + this.age + "Sex="+
                this.isMale+"]";
    }
}
